﻿using Architecture.Domain.Dto;
using Architecture.Domain.RBAC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Service
{
    public interface IRoleService
    {
        Task<int> AddAsync(Role model);
        Task<int> DeleteAsync(int id);
        Task<int> UpdateAsync(Role model);
        Task<Role> GetByIdAsync(int id);
        Task<PageListDto<Role>> GetAllAsync(int pageIndex, int pageSize,string? roleName);
        Task<object> RoleGetAll();
        //用户角色关联
        Task<int> GetRelatedAdd(int roleId,List<int> userId);

        Task<object> GetRelatedFan(int id);
        Task<object> GetUserInfo(int id);
        Task<int> RelatedDelete(Related model);
    }
}
